package com.ihelp.service.impl;

import com.ihelp.pojo.OrderStatus;
import com.ihelp.mapper.OrderStatusMapper;
import com.ihelp.service.OrderService;
import com.ihelp.service.OrderStatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiuZiMing
 * @since 2023-05-23
 */
@Service
public class OrderStatusServiceImpl extends ServiceImpl<OrderStatusMapper, OrderStatus> implements OrderStatusService {

    @Autowired
    private OrderStatusMapper orderStatusMapper;
    @Override
    public List<OrderStatus> getAllOrderStatus() {
        return orderStatusMapper.selectList(null);
    }

    @Override
    public OrderStatus getOrderStatusById(Integer id) {
        return orderStatusMapper.selectById(id);
    }
}
